import Vue from 'vue'
import Router from 'vue-router'

const home = resolve => require(['@/components/common/home'], resolve);
const advertisingOperation = resolve => require(['@/components/page/advertisingOperation'], resolve);
const floorOperation = resolve => require(['@/components/page/floorOperation'], resolve);
const agentBusiness = resolve => require(['@/components/page/agentBusiness'], resolve);
const projectBusiness = resolve => require(['@/components/page/projectBusiness'], resolve);
const servicerBusiness = resolve => require(['@/components/page/servicerBusiness'], resolve);
const floorVerify = resolve => require(['@/components/page/floorVerify'], resolve);
const pictureVerify = resolve => require(['@/components/page/pictureVerify'], resolve);
const servicerPictureVerify = resolve => require(['@/components/page/servicerPictureVerify'], resolve);
const accountStatement = resolve => require(['@/components/page/accountStatement'], resolve);

Vue.use(Router)

export default new Router({
  // linkActiveClass:'active',
  routes: [{
    path: '/',
    component: home,
    children: [{
      path: '',
      component: advertisingOperation,
    }, {
      path: 'advertisingOperation',
      name: 'advertisingOperation',
      component: advertisingOperation,
    },{
      path: 'floorOperation',
      name: 'floorOperation',
      component: floorOperation,
    },{
      path: 'agentBusiness',
      name: 'agentBusiness',
      component: agentBusiness,
    },{
      path: 'projectBusiness',
      name: 'projectBusiness',
      component: projectBusiness,
    },{
      path: 'servicerBusiness',
      name: 'servicerBusiness',
      component: servicerBusiness,
    },{
      path: 'floorVerify',
      name: 'floorVerify',
      component: floorVerify,
    },{
      path: 'pictureVerify',
      name: 'pictureVerify',
      component: pictureVerify,
    },{
      path: 'servicerPictureVerify',
      name: 'servicerPictureVerify',
      component: servicerPictureVerify,
    },{
      path: 'accountStatement',
      name: 'accountStatement',
      component: accountStatement,
    }]
  }]
})
